package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.utils.DateUtils;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author : hcl
 * @Date : 2023/8/2
 */
@Data
public class Team {
    private Long id;
    @NotBlank(message = "项目名称不能为空")
    private String teamName;
    @NotBlank(message = "项目类型不能为空")
    private int teamType;
    private boolean isLock;
    private String description;
    private Long creator;
    private Date createTime;

    public String getCreateTime() {
        return DateUtils.dateTime(createTime);
    }
}
